RequestPermissionCallback

This callback is invoked when a web page requests a permission, for example to enable geolocation or notifications. The permission type and the information about the web page can be obtained from the passed Params object.

Use the grant method to grant the requested permission.

Use the deny method to deny the requested permission.

If the callback throws an exception, the deny method will be invoked.

Types

Link copied to clipboard
public final class Action extends AsyncCallbackAction<R>
An action providing a response to the RequestPermissionCallback.
Link copied to clipboard
public interface Params
The parameters of the RequestPermissionCallback.

Functions

Link copied to clipboard
public abstract void on(P params, R tell)
Invoked when the callback needs a response for the given callback parameters.